/**
 * Created by li0544 on 2016-12-27.
 */
function checkUser(data) {
    try{
        data = eval('(' + data + ')');
        if(data.typ == 1){
            $("#t2_0").removeClass("tit_hide");
            $("#t2_1").addClass("tit_hide");
            $scope.user = data.msg;
        } else {
            $("#t2_0").addClass("tit_hide");
            $("#t2_1").removeClass("tit_hide");
            $scope.user = "";
        }
    } catch(e) {
        log(e);
    }
}